<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <ul>
   <li></li>
  </ul>
</body>
<script>
   const userInfo = {
      id: 68273,
      username: '黑马程序员-杭州校区',
      age: 18,
      email: 'hangzhouehm@itcast.com',
      phone: 98765549,
      address: '浙江省杭州市下沙4号大街黑马程序员',
    }
    const ul= document.querySelector('ul');
    let str=''  
    for(let k in userInfo){
      str+=`<li>${userInfo[k]}</li>`

    }
    console.log(str);
    ul.innerHTML=str

    
</script>
</html>